<!--{include index/header}-->
<script type="text/javascript">
	$(function(){
		$('#login-user-form').submit(function(){
			$.ajax({
				type:'POST',
				url:'{$DOMAIN_ROOT}index.php/member',
				dataType:'html',
				data:$(this).serialize(),
				success:function(data){
					if(data == '1'){
						right('登录成功！',function(){
							location.href="{$DOMAIN_ROOT}"
						});
					}else if(data == '-1'){
						wrong('用户名或email不存在');
					}else if(data == '-2'){
						wrong('密码不正确！');
					}
				}
			});
		});
	});
</script>
			<div id="bdw" class="bdw">
				<div id="bd" class="cf">
					<div id="login">
						<div id="content" class="login-box">
							<div class="box">
								<div class="box-top">
								</div>
								<div class="box-content">
									<div class="head">
										<h2>登录</h2>
										<span>&nbsp;或者 <a href="{$DOMAIN_ROOT}index.php/member/register">注册</a></span>
									</div>
									<div class="sect">
										<form id="login-user-form" method="post" action="javascript:;" class="validator">
											<div class="field email">
												<label for="login-email-address">
													Email／用户名
												</label>
												<input size="30" name="email" id="login-email-address" class="f-input" value="" require="true" datatype="require|limit" min="2" type="text">
											</div>
											<div class="field password">
												<label for="login-password">
													密码
												</label>
												<input size="30" name="password" id="login-password" class="f-input" require="true" datatype="require" type="password"><span class="lostpassword"><a href="http://www.fenfentuan.com/account/repass.php">忘记密码?</a></span>
											</div>
											<div class="field autologin">
												<input value="1" name="auto-login" id="autologin" class="f-check" checked="checked" type="checkbox">
												<label for="autologin">
													下次自动登录
												</label>
											</div>
											<div class="act">
												<input value="登录" name="commit" id="login-submit" class="formbutton" type="submit">
											</div>
										</form>
									</div>
								</div>
								<div class="box-bottom">
								</div>
							</div>
						</div>
						<div id="sidebar">
							<div class="sbox">
								<div class="sbox-top">
								</div>
								<div class="sbox-content">
									<div class="side-tip tip" style="padding-top: 4px;">
										<h2>还没有纷纷团帐户？</h2>
										<p>
											立即<a href="{$DOMAIN_ROOT}index.php/member/register">注册</a>，仅需30秒！
										</p>
									</div>
								</div>
								<div class="sbox-bottom">
								</div>
							</div>
						</div>
					</div>
				</div>
				<!-- bd end -->
			</div>
			<!-- bdw end -->
<!--{include member/footer}-->